package com.xjy.service;

import com.xjy.pojo.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface cartService {
    //添加购物车
    int addCart(Cart cart);

    //获取购物车
    List<Cart> getCartList(@Param("uid") int uid, Integer page, Integer size);

    //删除购物车
    int deleteCart(String cid);

    //改数量
    int updateCart(String cid,int num);

    Cart getExistCart(int uid, String pid);
}
